package cn.lookup.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class TargetController {
    @RequestMapping("/target")
    public ModelAndView target(ModelAndView modelAndView){
        System.out.println("target is running...");
        modelAndView.addObject("msg","test");
        modelAndView.setViewName("index");
        return modelAndView;
    }
}
